package java_dome.data.structure;

public class Dog<T> {
    String name;
    public int A = 1;
    private int B = 2;
    public Dog() {

    }

    public void setA(int A) {
        this.A = A;
    }

    public int getB() {
        System.out.println(this.B);
        return this.B;
    }

    private void eat() {
        System.out.println("吃");
    }
    public void sleep() {
        System.out.println("睡觉");
    }
    public void setName(String name1) {
        name = name1;
    }

}
